home *** CD-ROM | disk | FTP | other *** search
/ The Best of MacTutor - S…e Code for Volumes 1 to 5 / The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin / Source Code / #49 (Oct 89) / DMP Source / src / compat.h < prev    next >
Text File  |  1989-01-02  |  4KB  |  122 lines

  1. /*
  2.  * This FILE is intended for use with the MPW C 2.0 Interface files
  3.  * which generate InLine code for routines that call the
  4.  * ToolBox with points by value and strings as Pascal strings.
  5.  * It should be included AFTER any Macintosh #include files.  See
  6.  * Appendix H of the MPW C 2.0 manual for details.
  7.  *
  8.  * This file allows use of MPW C 2.0 standardized ToolBox calls using
  9.  * the spelling from Inside Macinstosh, and not all upper case, as is used
  10.  * in the MPW C 2.0 header files.  Please note that use of this file
  11.  * means that you no longer have access to the C-language versions of
  12.  * the ToolBox calls.
  13.  *
  14.  * It is rumored that this file will no longer be necessary with MPW
  15.  * C 3.0. (?)
  16.  *
  17.  * If you like to pass C strings to the ToolBox, do NOT include this
  18.  * FILE.
  19.  *
  20.  */
  21. #ifdef MPU68000 /* Aztec C, v 3.6c. */
  22. /* -D_INLINE on cc's command line is all that's required. */
  23. #else
  24. #define NewControl  NEWCONTROL
  25. #define SetCTitle   SETCTITLE
  26. #define GetCTitle   GETCTITLE
  27. #define DragControl DRAGCONTROL
  28. #define TestControl TESTCONTROL
  29. #define TrackControl    TRACKCONTROL
  30. #define FindControl FINDCONTROL
  31. #define OpenDeskAcc OPENDESKACC
  32. #define FindDItem   FINDDITEM
  33. #define NewDialog   NEWDIALOG
  34. #define ParamText   PARAMTEXT
  35. #define GetIText    GETITEXT
  36. #define SetIText    SETITEXT
  37. #define NewCDialog  NEWCDIALOG
  38. #define GetVol      GETVOL
  39. #define SetVol      SETVOL
  40. #define UnmountVol  UNMOUNTVOL
  41. #define Eject       EJECT
  42. #define FlushVol    FLUSHVOL
  43. #define Create      CREATE
  44. #define FSDelete    FSDELETE
  45. #define FSOpen      FSOPEN
  46. #define OpenRF      OPENRF
  47. #define Rename      RENAME
  48. #define GetFInfo    GETFINFO
  49. #define SetFInfo    SETFINFO
  50. #define SetFLock    SETFLOCK
  51. #define RstFLock    RSTFLOCK
  52. #define GetFontName GETFONTNAME
  53. #define GetFNum     GETFNUM
  54. #define LCellSize   LCELLSIZE
  55. #define LClick      LCLICK
  56. #define LNew        LNEW
  57. #define NewMenu     NEWMENU
  58. #define AppendMenu  APPENDMENU
  59. #define SetItem     SETITEM
  60. #define GetItem     GETITEM
  61. #define InsMenuItem INSMENUITEM
  62. #define MenuSelect  MENUSELECT
  63. #define EqualString EQUALSTRING
  64. #define RelString   RELSTRING
  65. #define UprString   UPRSTRING
  66. #define DIZero      DIZERO
  67. #define NumToString NUMTOSTRING
  68. #define StringToNum STRINGTONUM
  69. #define SFPutFile   SFPUTFILE
  70. #define SFPPutFile  SFPPUTFILE
  71. #define SFGetFile   SFGETFILE
  72. #define SFPGetFile  SFPGETFILE
  73. #define IUDateString    IUDATESTRING
  74. #define IUDatePString   IUDATEPSTRING
  75. #define IUTimeString    IUTIMESTRING
  76. #define IUTimePString   IUTIMEPSTRING
  77. #define IUCompString    IUCOMPSTRING
  78. #define IUEqualString   IUEQUALSTRING
  79. #define DIBadMount  DIBADMOUNT
  80. #define DrawString  DRAWSTRING
  81. #define StringWidth STRINGWIDTH
  82. #define StuffHex    STUFFHEX
  83. #define AddPt       ADDPT
  84. #define SubPt       SUBPT
  85. #define EqualPt     EQUALPT
  86. #define PtInRect    PTINRECT
  87. #define Pt2Rect     PT2RECT
  88. #define PtToAngle   PTTOANGLE
  89. #define PtInRgn     PTINRGN
  90. #define StdText     STDTEXT
  91. #define CreateResFile   CREATERESFILE
  92. #define OpenResFile OPENRESFILE
  93. #define OpenRFPerm  OPENRFPERM
  94. #define GetNamedResource    GETNAMEDRESOURCE
  95. #define Get1NamedResource   GET1NAMEDRESOURCE
  96. #define GetResInfo  GETRESINFO
  97. #define SetResInfo  SETRESINFO
  98. #define AddResource ADDRESOURCE
  99. #define GetAppParms GETAPPPARMS
  100. #define OpenDriver  OPENDRIVER
  101. #define TEGetOffset TEGETOFFSET
  102. #define TEGetPoint  TEGETPOINT
  103. #define TEClick     TECLICK
  104. #define NewString   NEWSTRING
  105. #define SetString   SETSTRING
  106. #define GetIndString    GETINDSTRING
  107. #define DeltaPoint  DELTAPOINT
  108. #define ShieldCursor    SHIELDCURSOR
  109. #define NewWindow   NEWWINDOW
  110. #define SetWTitle   SETWTITLE
  111. #define GetWTitle   GETWTITLE
  112. #define NewCWindow  NEWCWINDOW
  113. #define GrowWindow  GROWWINDOW
  114. #define DragWindow  DRAGWINDOW
  115. #define TrackGoAway TRACKGOAWAY
  116. #define FindWindow  FINDWINDOW
  117. #define PinRect     PINRECT
  118. #define DragGrayRgn DRAGGRAYRGN
  119. #define TrackBox    TRACKBOX
  120. #endif
  121.  
  122.